package org.graduation.recruitment.mapper.resume;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.graduation.recruitment.entity.pojo.resume.ProjectExperience;

import java.util.List;

/**
 * 项目经验Mapper接口，继承自BaseMapper，用于操作项目经验表resume_project_experience
 */
@Mapper
public interface ProjectExperienceMapper extends BaseMapper<ProjectExperience> {

    /**
     * 根据简历ID查询该简历的所有项目经验
     *
     * @param resumeId 简历ID，用于查询该简历对应的项目经验
     * @return 返回一个项目经验列表，包含该简历的所有项目经验
     */
    @Select("SELECT * FROM resume_project_experience where resume_id = #{resumeId}")
    List<ProjectExperience> selectAllByResumeId(Long resumeId);
}
